﻿using System;
using System.Collections.Generic;

namespace Configuration
{
    class ConfigTool
    {


        public static class Config
        {
            //public static string ConnectionString = "Data Source = DESKTOP-7E4LREC\\SQLEXPRESS;Initial Catalog=pump; User ID=sa; Password=Xyj_0930_1";

            //public static string ConnectionString = "Data Source = DESKTOP-7E4LREC\\SQLEXPRESS;Initial Catalog=pump;Integrated Security=True";
            //实验室电脑
            //public static string ConnectionString = "Data Source=DESKTOP-5RTP37A\\SQLEXPRESS;Initial Catalog=pump;Integrated Security=True";

            //温州环境
            //public static string ConnectionString = "Data Source = DESKTOP-2FV181E\\SQLEXPRESS;Initial Catalog=pump;Integrated Security=True";

           
            

         

            public static ConfigDataBind[] PumpTypes = new ConfigDataBind[] {
              new ConfigDataBind("普通离心泵",1),
              //new ConfigDataBind("潜水电泵",2),
              //new ConfigDataBind("潜污泵",3),
              new ConfigDataBind("螺杆泵",4)
          };

            public static ConfigDataBind[] WindingConnection = new ConfigDataBind[]
            {
            new ConfigDataBind("三角形接法",1),
            new ConfigDataBind("星型接法",2)
            };

            public static ConfigDataBind[] WindingMaterial = new ConfigDataBind[]
            {
            new ConfigDataBind("铜",1),
            new ConfigDataBind("铝",2)
            };

            /// <summary>
            /// 选择流量计，需要做成可配置，value值为plc的地址
            /// </summary>
            public static ConfigDataBind[] Flowmeter = new ConfigDataBind[]
            {
            new ConfigDataBind("DN25",120),
            new ConfigDataBind("DN50",130),
            new ConfigDataBind("DN80",140),
            new ConfigDataBind("DN100",150),
            new ConfigDataBind("DN150",160),
            new ConfigDataBind("DN200",170),
            };

            /// <summary>
            /// 选择流量计，需要做成可配置，value值为plc的地址
            /// </summary>
            public static ConfigDataBind[] FlowHeadLevel = new ConfigDataBind[]
            {
            new ConfigDataBind("1B","1B"),
            new ConfigDataBind("2B","2B"),
            new ConfigDataBind("3B","3B"),
            };

            /// <summary>
            /// 选择流量计，需要做成可配置，value值为plc的地址
            /// </summary>
            public static ConfigDataBind[] PresureFlowLevel = new ConfigDataBind[]
            {
            new ConfigDataBind("1级","1"),
            new ConfigDataBind("2级","2"),

            };
            /// <summary>
            /// 默认入口摩擦系数
            /// </summary>
            public static Double KInlet = 0.05;
            /// <summary>
            /// 默认出口摩擦系数
            /// </summary>
            public static Double KOutlet = 0.05;

            public static String BasePath = @"D:\PumpExperiment";

            public static String ExperimentReportTemplatePath = BasePath;

            public static String ExperimentReportDir = BasePath + @"\ExperimentData";

            public static String ExperimentChartImageDir = BasePath + @"\image";

            public static int DataGetInterval = 1000;

            public static int XAxisUnit = 10;
            public static int YAxisUnit = 5;
            public static double AxisMaxRate = 0.8f;
            public static int DrawPointCount = 30;


        }
    }
}
